Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs/fix #3220

Closed
wants to merge 91 commits into from
Closed

Docs/fix #3220

wants to merge 91 commits into from

Conversation

Defi-Moses
Copy link
Collaborator

@Defi-Moses Defi-Moses commented Oct 3, 2024

ChiTimesChi and others added 30 commits September 18, 2024 20:02
- use `forge fmt` as formatter in Solidity extension
…0] (#3138)

* init. solidity ^. FbV2 relay/prove/claim overloads

* +IFastBridgeV2, explicit address0 cast, func scope & inheritdoc fixes

* pragma lock, contract relabel

* feat: start scoping V2 tests

* test: override relayer role scenarios, no longer enforced by V2

* test: finish the parity test

* test: the management methods

* test: dst chain scenarios

* test: bridge

* test: prove

* test: claim

* test: dispute

* test: refund

* test: bridge reverts

* remove redundant extend. rearrange inherit list

* revert 0.8.20 in favor of user (non-ws) setting

---------

Co-authored-by: ChiTimesChi <88190723+ChiTimesChi@users.noreply.github.com>
 - FastBridge@0.4.0
* move the errors

* [goreleaser]

* fix v to w
* changing native token address standard

* fixing tests

* normalizeNativeTokenAddress middleware, additional tests

---------

Co-authored-by: abtestingalpha <abtestingalpha@gmail.com>
 - @synapsecns/rest-api@1.1.4
* refactoring and adding swagger

* remove testing scripts

* fix typos and consistency with 404 errors
 - @synapsecns/rfq-indexer-api@1.0.4
 - @synapsecns/contracts-core@1.0.32
 - FastBridge@0.4.1
 - @synapsecns/solidity-devops@0.4.5
* use experimental logger to debug

* fix lint

* [goreleaser]

* use submitter instead of client

* [goreleaser]

* [goreleaser]
* Additional checks on screen

* Adds checks on chain/token changes
 - @synapsecns/synapse-interface@0.38.9
* add bridge quote history middleware

* request user confirm changes when quoted price updates

* add conditions for displaying confirm change state

* track initial quote initializing confirm change state

* specify output delta threshold

* callback functions to handle initialize/accept/reset confirm changes flow

* quote countdown timer animation to signal refresh

* implement automatic refresh intervals

* mouse move to refresh automatic intervals

* add i8n translations for button text

---------

Co-authored-by: abtestingalpha <abtestingalpha@gmail.com>
 - @synapsecns/synapse-interface@0.39.0
 - @synapsecns/rest-api@1.1.5
* fix: license, files

* fix: package name

* build: update solhint to latest

* build: remove prettier dependencies

* fix: solhint workflows

* build: update solhint in other packages as well

* chore: solhint rules, exceptions

* fix: silence linter warnings in tests

* chore: forge fmt

* add variable to test linter CI

* Revert "add variable to test linter CI"

This reverts commit 0629309.
 - @synapsecns/contracts-core@1.0.33
 - @synapsecns/contracts-rfq@0.5.0
 - @synapsecns/solidity-devops@0.4.6
* adds `/bridgeLimits` route, controller

* fetch best sdk quote for min/max origin amounts

* add tests

* implement middleware to normalize addresses

* adds swagger doc
 - @synapsecns/rest-api@1.2.0
…3182)

* ci: limit the amount of solhint warnings

* refactor: move the errors into the separate interface

* refactor: errors imports in tests
 - @synapsecns/contracts-rfq@0.5.1
* ci: run tests w/o coverage first for better visibility

* test: malform the test to check the adjusted workflow

* Revert "test: malform the test to check the adjusted workflow"

This reverts commit e7db6e1.

* ci: add gas-diff workflow

* try changing the contract to trigger gas diffs

* retrigger the workflow

* ci: provide the correct report path

* ci: run on pull requests only

* ci: save gas reports in monorepo root

* Revert "ci: run on pull requests only"

This reverts commit 0a01d60.

* Revert "try changing the contract to trigger gas diffs"

This reverts commit 91bc03e.

* refactor: wrap if statement

* refactor: exclude `solidity-devops` package in a more generic way

* ci: run tests w/o coverage for `solidity-devops`, add comments

* add generic comment to trigger `solidity-devops` workflows

* Revert "add generic comment to trigger `solidity-devops` workflows"

This reverts commit cc35a43.
 - @synapsecns/contracts-rfq@0.5.2
…-259] (#3186)

* fix: set very high gas limit for intensive tests

* ci: speed up solidity coverage
 - @synapsecns/contracts-core@1.0.34
dwasse and others added 6 commits October 2, 2024 14:56
* WIP: initial websocket wiring

* WIP: add ws client and handling

* Fix: receive respsects context

* Cleanup: split into rfq.go

* Fix: build

* Feat: add mocked ws client

* Fix: build

* Feat: add SubscribeActiveQuotes() to client

* Feat: add PutUserQuoteRequest() to api client

* Fix: build

* WIP: rfq tests with ws auth

* WIP: test fixes

* Feat: working TestHandleActiveRFQ

* Feat: add expired request case

* WIP: functionalize test relayer resps

* Feat: add runMockRelayer with multiple relayers

* Feat: add MultipleRelayers case

* Feat: add FallbackToPassive case

* Fix: bigint ptr issue

* Cleanup: bump expiration window

* WIP: logs

* Feat: split into separate tests

* Cleanup: logs

* Feat: add PassiveBestQuote case

* WIP: update db interface with new models

* Feat: impl new db funcs

* Feat: insert models within api server

* Feat: update quote request / response statuses

* Fix: db error handling

* Fix: api tests

* Feat: add initial response validation

* Feat: impl pingpong

* Fix: register models

* Feat: verify quote request in SingleRelayer case

* Feat: verify more db requests

* Cleanup: common vars

* Cleanup: break down handleActiveRFQ into sub funcs

* Cleanup: comments

* Cleanup: remove unused mock

* Fix: builds

* Feat: make relayer response data optional to signify null resp

* Fix: response primary key on quote id

* Fix: build

* Feat: update swagger docs

* WIP: generic pubsub

* Feat: add basic PubSubManager

* Feat: implement subscription / unsubscription operations

* Feat: respond to subscribe operation

* Feat: add runWsListener helper

* Cleanup: reduce chan buffer

* Cleanup: lints

* Cleanup: break down into smaller funcs

* Cleanup: refactor ws client

* Cleanup: more lints

* Fix: build

* Cleanup: lints

* Feat: mark as fulfilled when updating request status

* Cleanup: lint

* Skip broken test for now

* Cleanup: lint

* Feat: add open_quote_requests endpoint with test

* Feat: add new open request model

* Update swagger

* go mod tidy

* fix error

* Fix: respecting context

* Replace: Fulfilled -> Closed

* Cleanup: use errors.New()

* Feat: ReceiveQuoteResponse specifies request id

* Cleanup: remove logs

* Feat: add some tracing

* Feat: add IntegratorID

* Feat: remove repetitive fields from relayer quote response, move requests to requests.go

* Cleanup: use new routes

* Cleanup: migrate req/res struct naming

* Cleanup: update swagger

* Cleanup: lint

* [goreleaser]

* Feat: run ws endpoint within existing server

* [goreleaser]

* Fix: build

* [goreleaser]

* Feat: add more tracing

* [goreleaser]

* feat(rfq-relayer): relayer supports active quoting (#3198)

* Feat: add active rfq subscription on quoter

* Feat: relayer subscribes to active quotes upon starting

* [goreleaser]

* Feat: specify ws url in relayer

* [goreleaser]

* [goreleaser]

* Fix: build

* [goreleaser]

* Feat: relayer tracing

* [goreleaser]

* Feat: use supports_active_quoting instead of ws url

* [goreleaser]

* WIP: add logs

* [goreleaser]

* WIP: more logs

* [goreleaser]

* More logs

* [goreleaser]

* More logs

* [goreleaser]

* More logs

* [goreleaser]

* Close conn when encountering write err

* [goreleaser]

* More logs

* [goreleaser]

* More logs

* [goreleaser]

* More logs

* [goreleaser]

* More logs

* [goreleaser]

* Logs with ts

* [goreleaser]

* More tracing

* [goreleaser]

* Fix: send to reqChan

* [goreleaser]

* Check for zero pong time

* Fix: make close_at and closed_quote_id optional

* [goreleaser]

* Feat: remove extra fields from responses

* [goreleaser]

* Fix: skip passive quote

* [goreleaser]

* Cleanup: remove logs

* Fix: use correct span

* Cleanup: remove logs

* Fix: build

* Cleanup: lint

* Cleanup: lint

* Cleanup: update swagger

* Feat: client sends pings, server sends pongs

* [goreleaser]

* Cleanup: remove unused func

* WIP: ws error handling

* [goreleaser]

* Feat: ws client uses errgroup

* Cleanup: remove log

* [goreleaser]

* Replace: PutUserQuoteResponse -> PutRFQResponse

* Feat: add QuoteID to PutRFQResponse

* [goreleaser]

* Cleanup: lint

* Fix: build

* Cleanup: lint

* [goreleaser]

* Add logs

* [goreleaser]

* Add logs

* [goreleaser]

* Cleanup: remove logs

---------

Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
* test: add gas bench for encoding

* test: add gas bench for canClaim
 - @synapsecns/contracts-rfq@0.6.2
Copy link
Contributor

coderabbitai bot commented Oct 3, 2024

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (3)
  • feat/.*
  • master
  • fe-release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Defi-Moses Defi-Moses closed this Oct 3, 2024
@github-actions github-actions bot deleted the docs/fix branch October 3, 2024 15:30
@Defi-Moses Defi-Moses restored the docs/fix branch October 3, 2024 15:30
Copy link

codecov bot commented Oct 3, 2024

Bundle Report

Changes will increase total bundle size by 7.06MB (19.81%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
sdk-router-@synapsecns/sdk-router-cjs* 526.74kB 409.5kB (349.29%) ⬆️⚠️
explorer-ui-server-cjs* 866.14kB 76 bytes (0.01%) ⬆️
explorer-ui-client-array-push* 2.31MB 152 bytes (0.01%) ⬆️
synapse-interface-client-array-push* 7.28MB 701 bytes (0.01%) ⬆️
synapse-interface-server-cjs* 1.64MB 147.86kB (9.89%) ⬆️⚠️
widget-cjs-esm* 271.27kB 2.03kB (-0.74%) ⬇️
docs-bridge-client-array-push 10.57MB 2.67MB (33.79%) ⬆️⚠️
docs-bridge-server-cjs 18.36MB 3.49MB (23.43%) ⬆️⚠️
synapse-constants-esm-cjs* 174.63kB 174.63kB (100%) ⬆️⚠️
synapse-constants-cjs-esm* 174.18kB 174.18kB (100%) ⬆️⚠️

ℹ️ *Bundle size includes cached data from a previous commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants